﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing.Design;
using System.Xml.Serialization;
using Landpy.CruiseControlNet.Infrastructure.Control;

namespace Landpy.CruiseControlNet.FacadeInterface.ConfigurationModule
{
    [XmlRoot("cruisecontrol")]
    public class CruiseControl
    {
        [Browsable(false)]
        [XmlElement("internalSecurity")]
        public InternalSecurity InternalSecurity { get; set; }

        [Category("Basic")]
        [Description("The projects of cruisecontrol.")]
        [Editor(typeof(MultipleTypeCollectionEditor), typeof(UITypeEditor))]
        [XmlElement("project")]
        public List<Project> Projects { get; set; }

        public CruiseControl()
        {
            this.Projects = new List<Project>();
        }
    }
}